﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using uMES.LeanManufacturing.ReportBusiness;
using System.Net;

public partial class uMESFactoryProductionKanBanForm : System.Web.UI.Page
{
    public string FactoryID = "";
    public string FactoryName = "";
    public string IP = "";
    private uMESCommonBusiness common = new uMESCommonBusiness();
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            if (Request.QueryString["factoryid"] != null)
            {
                FactoryID = Request.QueryString["factoryid"].ToString().Trim();// Server.UrlDecode(Request.QueryString["factoryid"]).ToString();
                DataTable dt = common.GetFactoryNamesByFactoryID(FactoryID);
                if (dt.Rows.Count>0)
                {
                    FactoryName = dt.Rows[0]["fName"].ToString();
                }
                IP = common.GetIpAddress(); ;
            }
        }
    }


}